package com.account;

public class Thread1 implements Runnable {

	    private Account account;
	    private double drawBalance;
	 
	    public Account getAccount() {
	        return account;
	    }
	 
	    public void setAccount(Account account) {
	        this.account = account;
	    }
	 
	    public double getDrawBalance() {
	        return drawBalance;
	    }
	 
	    public void setDrawBalance(double drawBalance) {
	        this.drawBalance = drawBalance;
	    }
	 
	    @Override
	    public void run() {
	        for (int i = 0; i < 100; i++) {
	            account.drawBalance(drawBalance);
	        }
	    }
}
